package com.example.block_chain.domain.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("award")
public class Award {

    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("s_no")
    private String sNo;

    @TableField("a_no")
    private String aNo;

    @TableField("award_url")
    private String awardUrl;

    @TableField("status")
    private Integer status;

    @TableField("class_code")
    private String classCode;

    @TableField("major_code")
    private String majorCode;

    @TableField("faculty_code")
    private String facultyCode;

    @TableField("school_code")
    private String schoolCode;

    @TableField("description")
    private String description;

    @TableField("number")
    private String number;

    @TableField("digest")
    private String digest;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private Date createTime;
}
